package com.wifi.user.dao;


import com.wifi.user.entity.User;

import java.sql.SQLException;
import java.util.List;

public interface UserDao {

    Object login(User user, String name, String pwd) throws SQLException;

    int updateLastLoginTime(Integer id) throws SQLException;

    Object selectUserById(String id) throws SQLException;

    Integer updatePwd(String pwd, int id) throws SQLException;

    List<Object> selectUser() throws SQLException;

    Long insertUser(User user) throws SQLException;

    Integer updateStatus(Integer idi,Integer vlid) throws SQLException;

    Integer updateDelu(Integer idi) throws SQLException;

    Object selectByName(User user, String username) throws SQLException;

    Integer updateUser(User user) throws SQLException;
    Integer updatePwd( String id,String num,String pwdMD5) throws SQLException;
}
